package com.songlanyun.modules.order.model.dto;

import com.songlanyun.common.drive.ValueObject;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

@Data
public class RenewalServiceGoodsDTO implements ValueObject
{
    @NotNull(message = "主订单不能为空")
    private  Long orderId;

    @NotNull(message = "子订单不能为空")
    private  Long childOrderId;
    //所续天数
    @Range(min = 1L,max = 1000,message = "所续天数最小是1天,最多1000天")
    private Integer renewalNum;

}
